package com;

import com.edu.dubbo.service.IProductService;
import com.edu.dubbo.service.Request;
import com.edu.dubbo.service.Response;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.naming.ldap.PagedResultsControl;

/**
 * Created by Administrator on 2017/6/21.
 */
public class UserCenter {


    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("consumer.xml");
        IProductService productService = (IProductService) context.getBean("productService");
        Response product = productService.getProduct(new Request());
        System.out.println(product.getData());
    }

}
